In mathematics the Rudin–Shapiro sequence, also known as the Golay–Rudin–Shapiro sequence is an infinite automatic sequence named after Marcel Golay, Walter Rudin and Harold S. Shapiro, who independently investigated its properties.[1]
Contents |
Each term of the Rudin-Shapiro sequence is either +1 or −1. The nth term of the sequence, bn, is defined by the rules:
where the εi are the digits in the binary expansion of n. Thus an counts the number of (possibly overlapping) occurrences of the sub-string 11 in the binary expansion of n, and bn is +1 if an is even and −1 if an is odd.[2]
For example, a6 = 1 and b6 = −1 because the binary representation of 6 is 110, which contains one occurrence of 11; whereas a7 = 2 and b7 = +1 because the binary representation of 7 is 111, which contains two (overlapping) occurrences of 11.
Starting at n = 0, the first few terms of the an sequence are:
and the corresponding terms bn of the Rudin–Shapiro sequence are:
The Rudin–Shapiro sequence can be generated by a four state automaton.[3]
The values of the terms an and bn in the Rudin–Shapiro sequence can be found recursively as follows. If n = m.2k where m is odd then
Thus a108 = a13 + 1 = a3 + 1 = a1 + 2 = a0 + 2 = 2, which can be verified by observing that the binary representation of 108, which is 1101100, contains two sub-strings 11. And so b108 = (−1)2 = +1.
The Rudin-Shapiro word +1 +1 +1 −1 +1 +1 −1 +1 +1 +1 +1 −1 −1 −1 +1 −1 ..., which is created by concatenating the terms of the Rudin–Shapiro sequence, is a fixed point of the morphism or string substitution rules
as follows:
It can be seen from the morphism rules that the Rudin–Shapiro string contains at most four consecutive +1s and at most four consecutive −1s.
The sequence of partial sums of the Rudin–Shapiro sequence, defined by
with values
can be shown to satisfy the inequality